﻿/*
 * Created by SharpDevelop.
 * User: Masy Freddy
 * Date: 20/09/2011
 * Time: 12:20
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.AddIn.Pipeline;
using MetaVideoEditorEvolved.AddIn.Contracts;
using MetaVideoEditorEvolved.AddIn.HostViews;

namespace MetaVideoEditorEvolved.AddIn.HostAdapters
{
	/// <summary>
	/// Description of SaverAdapter.
	/// </summary>
	[HostAdapter]
	public class SaverAdapter : SaverView
	{
		private Contracts.ISaverContract saverContract;
		private System.AddIn.Pipeline.ContractHandle handle;
		
		public SaverAdapter(ISaverContract saverContract)
		{
			this.saverContract = saverContract;
			
			handle = new ContractHandle(saverContract);
		}
		
		public override void SaveMovie(string mediaLocation, MetaVideoEditorEvolved.AddIn.Entity.Movie movie)
		{
			this.saverContract.SaveMovie(mediaLocation, movie);
		}
		
		public override void SaveSerie(string mediaLocation, MetaVideoEditorEvolved.AddIn.Entity.Serie serie)
		{
			this.saverContract.SaveSerie(mediaLocation, serie);
		}
		
		public override void SaveSeason(string mediaLocation, MetaVideoEditorEvolved.AddIn.Entity.Season season)
		{
			this.saverContract.SaveSeason(mediaLocation, season);
		}
		
		public override void SaveEpisode(string mediaLocation, MetaVideoEditorEvolved.AddIn.Entity.Episode episode)
		{
			this.saverContract.SaveEpisode(mediaLocation, episode);
		}
		
		public override void ShowOption()
		{
			this.saverContract.ShowOption();
		}
		
		public override bool HasOption()
		{
			return this.saverContract.HasOption();
		}
	}
}
